//
//  BXGCommentReplyCell.m
//  CommunityPrj
//
//  Created by apple on 2017/9/1.
//  Copyright © 2017年 itheima. All rights reserved.
//

#import "BXGCommentReplyCell.h"
#import "BXGCommentDataModel.h"
#import "BXGCommentReplyViewModel.h"

@interface BXGCommentReplyCell()
@property(nonatomic, strong) BXGCommentReplyViewModel *replyViewModel;
@end

@implementation BXGCommentReplyCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _txtLabel = [[UILabel alloc] init];
        _txtLabel.font = [UIFont systemFontOfSize:10];
        [self addSubview:_txtLabel];
    }
    return self;
}

-(void)setupCell:(BXGCommentReplyViewModel*)replyViewModel
{
    _replyViewModel = replyViewModel;
    
    self.txtLabel.frame = _replyViewModel.txtFrame;
    self.txtLabel.text = _replyViewModel.dataModel.text;
    self.txtLabel.backgroundColor = [UIColor purpleColor];
    NSLog(@"txtLabel=%@, txtLabel content=%@", self.textLabel, self.txtLabel.text);
    
    // _nineGridView.frame = model.contentMediaFrame;
}


@end
